//---------------------------------------------------------------------
// <copyright file="ODataJsonLightPayloadKindDetectionState.cs" company="Microsoft">
//      Copyright (c) Microsoft Corporation.  All rights reserved.
// </copyright>
//---------------------------------------------------------------------

namespace Microsoft.Data.OData.JsonLight
{
    #region Namespaces
    #endregion Namespaces

    /// <summary>
    /// JSON Ligth specific state which is created during payload kind detection and reused during standard reading if available.
    /// </summary>
    internal sealed class ODataJsonLightPayloadKindDetectionState
    {
        /// <summary>The parsed metadata URI.</summary>
        private readonly ODataJsonLightMetadataUriParseResult metadataUriParseResult;

        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="metadataUriParseResult">The parsed metadata URI.</param>
        internal ODataJsonLightPayloadKindDetectionState(ODataJsonLightMetadataUriParseResult metadataUriParseResult)
        {
            DebugUtils.CheckNoExternalCallers();

            this.metadataUriParseResult = metadataUriParseResult;
        }

        /// <summary>The parsed metadata URI.</summary>
        internal ODataJsonLightMetadataUriParseResult MetadataUriParseResult
        {
            get
            {
                DebugUtils.CheckNoExternalCallers();
                return this.metadataUriParseResult;
            }
        }
    }
}